//
//  AppDelegate.m
//  全国天气解析
//
//  Created by Jonzzs on 16/3/27.
//  Copyright © 2016年 Jonzzs. All rights reserved.
//

#import "AppDelegate.h"
#import "TableViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    /* 创建窗体 */
    self.self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    [self.window  makeKeyAndVisible];
    self.window.backgroundColor = [UIColor whiteColor];
    
    /* 创建导航栏 */
    TableViewController *table = [[TableViewController alloc] init];
    table.name = @"中国";
    table.pyName = @"china";
    table.nameKey = @"quName";
    UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:table];
    
    /* 设置根视图 */
    self.window.rootViewController = navi;
    
    return YES;
}


@end
